//index.js
//获取应用实例
const app = getApp()


Page({
  data: {
    list : [
     { "name" : "融牛在线" , bottom : true ,"rightText" :"","id" : 0},

     { "name": "网站公告", bottom: false, "rightText": "", "id": 1 },
     { "name": "活动中心", bottom: false, "rightText": "", "id": 2 },
     { "name": "媒体报道", bottom: true, "rightText": "", "id": 3 },

     { "name": "帮助中心", bottom: false, "rightText": "", "id": 4 },
     { "name": "客服电话", bottom: false, "rightText": "400-6938-978", "id": 5 },
    ]
  },
  
  onLoad: function () {
    wx.setNavigationBarTitle({
      title: '发现'
    });

  },

  clickItemAction : function(event){
    var index = event.currentTarget.dataset.index;
    console.log(index)
  }
})
